program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  x1, y1, x2, y2, r1, r2, d : integer;
  a, b, c, a1, b1, c1, a2, b2, c2, a3, b3, c3 : real;
begin
  readln (x1, y1, x2, y2, r1, r2);
  d:=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);

  b:=((r2-r1)*(y2-y1)+(x2-x1)*sqrt(d-(r2-r1)*(r2-r1)))/d;
  a:=((r2-r1)*(x2-x1)-(y2-y1)*sqrt(d-(r2-r1)*(r2-r1)))/d;
  c:=-a*x1-b*y1+r1;
  writeln('a1:', a:0:3);
  writeln('b1:', b:0:3);
  writeln('c1:', c:0:3);
  writeln(' ');

  b1:=((r2-r1)*(y2-y1)-(x2-x1)*sqrt(d-(r2-r1)*(r2-r1)))/d;
  a1:=((r2-r1)*(x2-x1)+(y2-y1)*sqrt(d-(r2-r1)*(r2-r1)))/d;
  c1:=-a1*x1-b1*y1-r1;
  writeln('a2:', a1:0:3);
  writeln('b2:', b1:0:3);
  writeln('c2:', c1:0:3);
  writeln(' ');

  b2:=((r2+r1)*(y2-y1)+(x2-x1)*sqrt(d-(r2+r1)*(r2+r1)))/d;
  a2:=((r2+r1)*(x2-x1)-(y2-y1)*sqrt(d-(r2+r1)*(r2+r1)))/d;
  c2:=-a1*x1-b1*y1-r1;
  writeln('a3:', a2:0:3);
  writeln('b3:', b2:0:3);
  writeln('c3:', c2:0:3);
  writeln(' ');

  b3:=((r2+r1)*(y2-y1)-(x2-x1)*sqrt(d-(r2+r1)*(r2+r1)))/d;
  a3:=((r2+r1)*(x2-x1)+(y2-y1)*sqrt(d-(r2+r1)*(r2+r1)))/d;
  c3:=-a1*x1-b1*y1+r1;
  writeln('a4:', a3:0:3);
  writeln('b4:', b3:0:3);
  writeln('c4:', c3:0:3);
  writeln(' ');
  readln;



end.
